package com.cskaoyan.wx.controller;

import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.wx.service.WxUserService;
import com.cskaoyan.wx.vo.WxUserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("wx")
public class WxUserController {
    @Autowired
    WxUserService wxUserService;

    @GetMapping("user/index")
    public BaseRespVo userIndex(){
        WxUserVO wxUserVO = wxUserService.getUserIndex();
        return BaseRespVo.ok(wxUserVO);
    }
}
